package com.dx.as.listener;

import android.app.Activity;
import android.content.Context;

import com.dx.as.common.ILoadListener;

/**
 * Created by jwaoo on 2017/7/3.
 */

public abstract class IProInterface implements ILoadListener{
    private Context context;

    public IProInterface(Activity activity){
        this.context = activity.getApplicationContext();
    }
    public abstract void getDataFromNetOrDB(Object ... parms);

    //初始化相关数据数据
    public abstract void initialataData();

    public Context getContext(){
        return this.context;
    }

    @Override
    public void onResponse(Object response, int flg) {

    }

    @Override
    public void onFailure(Throwable t) {

    }
}
